import Vue from 'vue'
import App from './App.vue'
import router from './router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '@/assets/css/base.css'
import '@/assets/css/global.css' //全局修改样式
import '@/assets/iconfont/iconfont.css'
import '@/assets/iconfont1/iconfont.css'
import '@/plugins/flexible.js' //适配
import filter from '@/utils/vueFilter.js' //过滤器
// import '@/utils/permission' // 没获取用户token之前不需要路由守卫
import layer from 'vue-layer'
import 'vue-layer/lib/vue-layer.css';
Vue.prototype.$layer = layer(Vue, {
  msgtime: 1, //默认消失时间 s
});

Vue.config.productionTip = false
Vue.use(ElementUI)

Object.keys(filter).forEach(key => Vue.filter(key, filter[key])) //全局导入过滤器
new Vue({
  render: h => h(App),
  router //注册路由器
}).$mount('#app')